
package com.limoilux.cobolux.core;

import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

/**
 * 
 * @author dbernard
 * 
 */
public class Cobolux extends AbstractUIPlugin
{
	public static final String DEF_COMPILER_PATH = "/usr/local/bin/cobc";
	public static final String SRC_EXTENSION = "cbl";
	public static final String BIN_EXTENSION = "int";

	public static final String PLUGIN_ID = "com.limoilux.cobolux";

	private static Cobolux singleton;

	/**
	 * The constructor
	 */
	public Cobolux()
	{
	}

	@Override
	public void start(BundleContext context) throws Exception
	{
		super.start(context);
		Cobolux.singleton = this;

	}

	@Override
	public void stop(BundleContext context) throws Exception
	{
		Cobolux.singleton = null;
		super.stop(context);
	}

	/**
	 * Returns the shared instance
	 * 
	 * @return the shared instance
	 */
	public static Cobolux getDefault()
	{
		return Cobolux.singleton;
	}

}
